<template>
  <div class="pagination-container">
    <el-pagination
      :current-page="pagination.currentPage"
      :page-sizes="[10, 20, 50, 100]"
      :page-size="pagination.pageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="pagination.total"
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
    >
    </el-pagination>
  </div>
</template>

<script>
export default {
  name: 'StudentPagination',
  props: {
    pagination: {
      type: Object,
      required: true
    }
  },
  methods: {
    handleSizeChange(val) {
      this.$emit('on-size-change', val)
    },
    handleCurrentChange(val) {
      this.$emit('on-current-change', val)
    }
  }
}
</script>

<style scoped>
.pagination-container {
  display: flex;
  justify-content: flex-end;
  padding: 10px 0;
}
</style>
